package com.liu.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liu.entity.ServeTrainItem;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServeTrainItemDto{
    @ExcelProperty("序号")
    private Integer id ;
    /** 宠物id */
    @ExcelProperty("宠物")
    private Integer pId ;
    /** 用户id */
    @ExcelProperty("用户")
    private Integer uId ;
    /** 创建时间 */
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctime ;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty("修改时间")
    private Date utime ;
    /**
     * 训练项目id
     * 服从命令
     * 行为纠正
     * 技巧训练
     */
    @ExcelIgnore()
    private ServeTrainItem serveTrainItem;
}
